<?php
/**
 * Created by PhpStorm.
 * User: xk_96
 * Date: 2018/1/15
 * Time: 10:48
 */

namespace system\core;

//过滤器
class Filt
{
    public function __construct()
    {
        foreach ($_REQUEST as $key=>&$value){
            $_REQUEST[$key] = htmlspecialchars($value);
            $_REQUEST[$key] = htmlentities($value);
            $_REQUEST[$key] = addslashes($value);
            $_REQUEST[$key] = quotemeta($value);
        }
    }
}